package com.aaa.service.impl;

import com.aaa.dao.S_NewsDao;
import com.aaa.service.S_NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class S_NewsServiceImpl implements S_NewsService {
    @Autowired
    private S_NewsDao dao;

    @Override
    public List<Map> selNews(Map map) {
        return dao.selNews(map);
    }

    @Override
    public Integer getCount(Map map) {
        return dao.getCount(map);
    }

    @Override
    public int addNews(Map map) {
        return  dao.addNews(map);
    }

    @Override
    public int updateNews(Map map) {
        return  dao.updateNews(map);
    }

    @Override
    public int delNews(Integer id) {
        return  dao.delNews(id);
    }

    @Override
    public List<Map> selName() {
        return dao.selName();
    }

    @Override
    public int subCheck(Integer id) {
        return dao.subCheck(id);
    }

    @Override
    public List<Map> selectTitle() {
        return dao.selectTitle();
    }

    @Override
    public List<Map> selectTitledf() {
        return dao.selectTitledf();
    }

    @Override
    public List<Map> selectTitlezy() {
        return dao.selectTitlezy();
    }

}
